package com.iris.live.services.data.models;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * Created by DF on 9/23/2016.
 */
public class 报价付款详细ModelPK implements Serializable {
    private int 报价编号;
    private String 付款事由;

    @Column(name = "报价编号")
    @Id
    public int get报价编号() {
        return 报价编号;
    }

    public void set报价编号(int 报价编号) {
        this.报价编号 = 报价编号;
    }

    @Column(name = "付款事由")
    @Id
    public String get付款事由() {
        return 付款事由;
    }

    public void set付款事由(String 付款事由) {
        this.付款事由 = 付款事由;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        报价付款详细ModelPK that = (报价付款详细ModelPK) o;

        if (报价编号 != that.报价编号) return false;
        if (付款事由 != null ? !付款事由.equals(that.付款事由) : that.付款事由 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = 报价编号;
        result = 31 * result + (付款事由 != null ? 付款事由.hashCode() : 0);
        return result;
    }
}
